#!/usr/bin/env python3
#-*- coding: utf-8 -*-
#动态语言中的class是动态创建的
#类的type是class type
#实例的type是module.class
#type不仅能获取类型，更能动态的创建类type
from Student import Student

student = Student('wowo', 99)
print(type(student))
print(type(Student))

def initTeacher(self, name):
	self.name = name

Teacher = type('Teacher', (object,), dict(__init__=initTeacher))
teacher = Teacher('manman')
print(type(teacher))
print(type(Teacher))